package com.auxgroup.smarthome.inner.controller;

import com.auxgroup.smarthome.utils.common.LOG;
import com.auxgroup.smarthome.web.ApiResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author Qiuhua Lai
 */
@RestController
public class FeignTestController {

    @ApiIgnore
    @GetMapping("/test-feign")
    public ApiResponse testFeign(@RequestParam("send") String send) {
        String received = "Innerservice: I'm inner feign, received! please handle?";
        LOG.info(this,received);
        return ApiResponse.ok(received);
    }
}
